package com.singlemusic.pojo;

/**
 * SongtolistId entity. @author MyEclipse Persistence Tools
 */

public class SongtolistId implements java.io.Serializable {

	// Fields

	private Musiclists musiclists;
	private Songs songs;

	// Constructors

	/** default constructor */
	public SongtolistId() {
	}

	/** full constructor */
	public SongtolistId(Musiclists musiclists, Songs songs) {
		this.musiclists = musiclists;
		this.songs = songs;
	}

	// Property accessors

	public Musiclists getMusiclists() {
		return this.musiclists;
	}

	public void setMusiclists(Musiclists musiclists) {
		this.musiclists = musiclists;
	}

	public Songs getSongs() {
		return this.songs;
	}

	public void setSongs(Songs songs) {
		this.songs = songs;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SongtolistId))
			return false;
		SongtolistId castOther = (SongtolistId) other;

		return ((this.getMusiclists() == castOther.getMusiclists()) || (this
				.getMusiclists() != null && castOther.getMusiclists() != null && this
				.getMusiclists().equals(castOther.getMusiclists())))
				&& ((this.getSongs() == castOther.getSongs()) || (this
						.getSongs() != null && castOther.getSongs() != null && this
						.getSongs().equals(castOther.getSongs())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getMusiclists() == null ? 0 : this.getMusiclists()
						.hashCode());
		result = 37 * result
				+ (getSongs() == null ? 0 : this.getSongs().hashCode());
		return result;
	}

}